package com.suixinsanren.design.template.demo05;

public class Tea extends CaffeineBeverage {

    @Override
    public void brew() {
        System.out.println("用沸水浸泡茶叶");
    }

    @Override
    public void addCondiments() {
        System.out.println("加柠檬");
    }

    @Override
    public boolean customerWantsCondiments() {
        System.out.println("请问需要加柠檬吗？");
        return getUserInput().startsWith("y");
    }
}
